package sctu.edu.java.year2016.team04.luoxinghua.day20160526.chapter8_1;

import java.util.Scanner;

/**
 * Created by 落叶的思恋 on 2016/5/27.
 */
  public class  Cat extends Animal {
    @Override
    public void catchAnimal( String str) {
        System.out.println("我是从抽象类定义在继tapy里重写的");
        String ss="mouse";
        if(str.equals(ss) )
            System.out.println("我能吃它");
        else
            System.out.println("我不能吃它因为我是猫");
    }

}